package nj.yb.mapper;

import nj.yb.entity.user.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    //注册用户
    void register(User user);

    //用户登录
    User login(
            @Param("username") String username,
            @Param("password") String password
    );

    //根据ID查询用户
    User findById(Integer id);

    //检查用户是否存在
    User check(String username);
}
